package j03;

public class J03_Expression20 {

	public static void main(String[] args) {
		//int n=1;
		//int k=2;
		//int r=n;
		//if(k<n){r=k;}
		//System.out.println(r); //r=1
		
		//if(n<k){r=k;}
		//else r=k+n;
		//System.out.println(r); //r=2
	
		//int n=1;
		//int k=2;
		//int r=k;
		
		//if(r<k)n=r;
		//else k=n;
		//System.out.println(k); //r=2, k=1
		
		int n=1;
		int k=2;
		int r=3;
		if(r<n+k)r=2*n;
		else k=2*r;
		System.out.println(r); //k=6, r=3
	}

}
